package cn.scw.project.goods.domain;

import cn.scw.framework.aspectj.lang.annotation.Excel;
import cn.scw.framework.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品详细分类对象 g_commodity_type
 *
 * @author api
 * @date 2020-05-25
 */
@ApiModel("商品详细分类")
public class GCommodityType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    @ApiModelProperty("商品分类（0：设备；1：办公耗材）")
    @Excel(name = "商品分类", readConverterExp = "0=：设备；1：办公耗材")
    private String type;

    @ApiModelProperty("缩略图")
    @Excel(name = "缩略图")
    private String litimgUrl;

    @ApiModelProperty("商品名称")
    @Excel(name = "商品名称")
    private String name;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setLitimgUrl(String litimgUrl)
    {
        this.litimgUrl = litimgUrl;
    }

    public String getLitimgUrl()
    {
        return litimgUrl;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("litimgUrl", getLitimgUrl())
            .append("name", getName())
            .toString();
    }
}
